package org.orz.story.pms.biz.persistence.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.orz.story.pms.biz.enums.PermissionTypeEnum;

import java.util.Date;

/**
 * 权限
 * 
 * @author orz
 * @email 350679778@qq.com
 * @date 2020-09-06 15:03:18
 */
@Data
@TableName("pms_permission")
public class PmsPermission {
	/**id*/
	@TableId(type = IdType.AUTO)
	private Long id;
	/**权限编号*/
	private String permissionCode;
	/**父菜单id，一级菜单为0*/
	private Long parentId;
	/**父菜单权限编号*/
	private String parentPermissionCode;
	/**权限名称*/
	private String name;
	/** 权限路径*/
	private String url;
	/**类型 {@link PermissionTypeEnum}*/
	private Integer type;
	/**状态 1启用 0禁用*/
	private Integer status;
	/**是否展示 0不展示 1展示*/
	private Integer showFlag;
	/**菜单图标*/
	private String icon;
	/**排序*/
	private Integer orderNum;
	/**是否有效，1有效 0无效*/
	private Integer aliveFlag;
	/**创建人*/
	private Long createUser;
	/**创建时间*/
	private Date createDate;
	/**更新人*/
	private Long updateUser;
	/**更新时间*/
	private Date updateDate;
	/**数据库更新时间*/
	private Date updateDbDate;
}
